package com.java.zhuiyun;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @ClassName Email
 * @Description TODO
 * @Author MJL
 * @Date 2023/8/29 9:33
 **/
@SpringBootTest
public class Email {
    @Autowired
//    EmailUtils emailUtils;

    @Test
    void contextLoads() {
    }

    @Test
    void sendStringEmail() {
        // 测试文本邮件发送（无附件）
        String to = "2193218465@qq.com"; // 这是个假邮箱，写成你自己的邮箱地址就可以
        String title = "文本邮件发送测试";
        String content = "文本邮件发送测试";
//        emailUtils.sendMessage(to, title, content);
    }
}
